import 'package:flutter/material.dart';
import 'app.dart';
import 'utlis/loading.dart';
import 'utlis/constant.dart';
import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';


void main() => runApp(Application());


class Application extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(

      debugShowCheckedModeBanner: false,

      title: '聊天模块',

      theme: mDefaultTheme,

      //添加路由
      routes: <String, WidgetBuilder>{

        routesHomePage: (BuildContext context) => new AppHomePage(),
      },

      home: LoadingPage(),


    );
  }
}

//自定义主题
final ThemeData mDefaultTheme = new ThemeData(

    //appBar
    primaryColor: Colors.blue,
    //背景色
    scaffoldBackgroundColor: Colors.yellow,
    cardColor: Colors.green
);